﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccessLayer;

namespace LoanOriginatingSystem
{
    public partial class MainMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lblGreet.Text = "Welcome "+Session["currentUser"].ToString();
            lblLastLogin.Text = "Last Login Date: " + Session["LastLoginDate"].ToString();
        }

        protected void btnHome_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("HomeCustomer.aspx");
        }

        protected void btnLogOut_Click(object sender, ImageClickEventArgs e)
        {
            DataAccessManager.LogingOut(Session["currentUser"].ToString());
            Response.Redirect("WebFormLogin.aspx");
        }


    }
}